//---------------------------------------------------------------------------

#ifndef ComponentConfigurationH
#define ComponentConfigurationH


#define MOTOR_UB_PORT			Comm_UB
#define MOTOR_RL_PORT			Comm_RL
#define MOTOR_LL_PORT			Comm_LL
#define COMP_PORT					Comm_Comp
#define HMI_PORT					Comm_HMI
#define BOARD_PORT				Comm_ControlBoard

#define COMM_BUFF_SIZE		512

extern TYbCommDevice *Comm_UB;
extern TYbCommDevice *Comm_RL;
extern TYbCommDevice *Comm_LL;
extern TYbCommDevice *Comm_Comp;
extern TYbCommDevice *Comm_HMI;
extern TYbCommDevice *Comm_ControlBoard;

extern unsigned char CommBuff[COMM_BUFF_SIZE];

void Comm_Init(void);
void Comm_Write(TYbCommDevice *commport, unsigned char *address, int num);
//int Comm_Read(TYbCommDevice *commport, unsigned char *inbuff);


//---------------------------------------------------------------------------
#endif
